{%include file="m.index.header.tpl.php"%}
<!--头部 end-->
<!--主体部分-->
<div class="container" style="margin-top:70px;">

    <div class="row" style="margin-top:10px;">
        <form name="myform" action="" method="get">
            <div class="col-sm-12 distance" >
                <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">学年学期:</label>
                    <div class="col-sm-10">
                        <select class="form-control" id="semester_id" name="semester_id">
                            <option value="">请选择</option>
                            {%foreach from=$semester_lists key=key item=value%}
                            <option value="{%$key%}" {%if $key==$semester_id%}selected{%/if%}>
                                {%$value%}</option>
                            {%/foreach%}
                        </select>
                    </div>
                </div>
            </div>


            <div class="col-xs-12  distance hierarchy2">
                <div class="form-group text-center" style="padding-top:0px;">
                    <input type="hidden" name="a" value="sanitation.semesterlist">
                    <button type="submit" class="btn btn-success" style="width:80%">搜索</button>
                </div>
            </div>
        </form>


    </div>

    <div class="row" style="margin-top:15px;margin-left:1px; margin-right:1px;">
        <h5  class="navbar-text text-center" style="color:red">{%$semester_data.semester_name%}各班汇总表</h5>
        <!--<caption>2014-2015学年第一学期第一周</caption>-->
        {%foreach from=$class_lists key=key item=value%}
        <table class="table table-striped table-bordered text-center"  id="middles">
            <tr>
                <th colspan="2" class="text-center">班级:{%$value.class_name%}</th>
            </tr>
            {%foreach from=$semester_month name=foo key=key item=v%}
            <tr>
                <td>第{%$v.semester_month%}学月</td>
                <td><table class="table table-striped table-bordered text-center">
                        <tr>
                            <td>常规</td>
                            <td>{%$value.infos[$smarty.foreach.foo.index].sanitation_rule%}</td>
                        </tr>
                        <tr>
                            <td>其他</td>
                            <td>{%$value.infos[$smarty.foreach.foo.index].sanitation_rests%}</td>
                        </tr>
                    </table></td>
            </tr>
            {%/foreach%}
            <tr>
                <td>合计</td>
                <td><table class="table table-striped table-bordered text-center">
                        <tr>
                            <td>常规</td>
                            <td>{%$value.infos[$len].sanitation_rule%}</td>
                        </tr>
                        <tr>
                            <td>其他</td>
                            <td>{%$value.infos[$len].sanitation_rests%}</td>
                        </tr>
                    </table></td>
            </tr>
        </table>
        {%/foreach%}
    </div>


</div><!--container  end-->
<!--主体部分  end-->
<!--底部-->
{%include file="m.index.footer.tpl.php"%}

<!--底部end-->


</body>
</html>
